package com.goods.rest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.goods.common.utils.GoodsResult;
import com.goods.rest.service.RedisService;

@Controller
@RequestMapping("/cache/sync")
public class RedisController {
	@Autowired
	private RedisService redisService;

	@RequestMapping("/content/{contentCid}")
	public GoodsResult contentCacheSync(@PathVariable Long contentCid) {
		GoodsResult result = redisService.syncContent(contentCid);
		return result;
	}
}
